//
//  TestView.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/11/14.
//

import SwiftUI

struct TestView: View {
    var body: some View {
      VStack {
        Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
        Spacer()
        Button {
          print("ok")
        } label: {
          Image(systemName: "square.and.arrow.up.circle")
            .resizable()
            .scaledToFit()
            .frame(width: 80,height:80)
        }

        HStack {
          Text("Delete")
          Image(systemName: "trash")
            .resizable()
            .scaledToFit()
            .frame(width:32,height:32)
        }
        .padding()
        .cornerRadius(8)

      }
    }
}

struct TestView_Previews: PreviewProvider {
    static var previews: some View {
        TestView()
    }
}
